#include "stdafx.h"

#include "RequestTimeoutCallback.h"
#include "Utils/FastBlockQueue.h"
#include "RequestTimeout.h"

RequestTimeoutCallback::RequestTimeoutCallback(RequestTimeout const& requestTimeout, FastBlockQueue& queue)
:m_requestTimeout(requestTimeout),m_queue(queue)
{
}

void RequestTimeoutCallback::DoCallback()
{
	QueueItem item;
	item.type = QueueItem::TIMEOUT;
	memcpy(item.data,&m_requestTimeout,sizeof(RequestTimeout));

 	m_queue.Push(item);
}